package com.ynny.librarysystemmanager.service;

import com.github.pagehelper.PageInfo;
import com.ynny.librarysystemmanager.entity.User;
import com.ynny.librarysystemmanager.entity.UserDTO;

import java.util.List;

public interface UserService {

    List<User> findAll(User user);

    User findById(Integer userId);

    int addUser(User user);

    int editUser(User user);

    int disableUser(Integer useId , Integer status);


    User login(String username, String password);

    PageInfo page(UserDTO dto);
}
